package com.gitee.wsl.platform.network

import android.content.Intent
import android.net.Uri
import com.gitee.wsl.platform.ContextRef

actual fun openUrl(url: String) {
    val uri = Uri.parse(url) ?: return
    val intent = Intent().apply {
        action = Intent.ACTION_VIEW
        data = uri
        addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
    }
    ContextRef.startActivity(intent)
}